﻿#ifndef __READFILE_TASK_HEAD__
#define __READFILE_TASK_HEAD__

#include <string>
#include "task.h"

class ReadFileTask : public MultiTask::TaskBase
{
public:
	ReadFileTask(const std::string &filename);
	~ReadFileTask();

public:
	const char *GetName() override { return MULTI_TASK_GETNAME(ReadFileTask); }
	void Process(void *sharedObj) override;
	void OnCompleted() override;

private:
	std::string m_filename;
	std::string m_content;
	unsigned m_result;
};

#endif  //__READFILE_TASK_HEAD__
